from django.urls import path, include
from rest_framework import routers

from testviewset import views
from testviewset.views import TestUserViewSet
#
# app_name = 'testviewset'
router = routers.DefaultRouter()
router.register('myuser', TestUserViewSet)
print(router.urls)
urlpatterns = [
    path('', include(router.urls)),
    # path('user', TestUserViewSet.as_view({'get': 'list'}))
    path('test', views.testAuth.as_view()),
    path('comment', views.zhuanfa.as_view()),
    path('comment1', views.zhuanfa1.as_view()),
    path('comment2', views.zhuanfa2.as_view()),
    # path('test1', views.TestStress.as_view()),
]
# urlpatterns += router.urls
# print(urlpatterns)
